package main

import (
	"fmt"
	"leetcode/456/solution"
)

// 456题
// 132模式
// https://leetcode-cn.com/problems/132-pattern/

func main() {
	var (
		case1 = []int{1, 2, 3, 4}
		case2 = []int{3, 1, 4, 2}
	)

	// 方案1（未通过）
	fmt.Println(solution.V1(case1))

	fmt.Println(solution.V1(case2))

	// 方案2
	fmt.Println(solution.V2(case1))

	fmt.Println(solution.V2(case2))
}
